Skip to content

Fix(template): Replace hardcoded "rerun" check with loop.last for comma logic#1020

Open
iisenfrank wants to merge 1 commit intopytest-dev:masterfrom
iisenfrank:fix/comma-condition-in-summary
Open

Fix(template): Replace hardcoded "rerun" check with loop.last for comma logic#1020
iisenfrank wants to merge 1 commit intopytest-dev:masterfrom
iisenfrank:fix/comma-condition-in-summary

Conversation

@iisenfrank
Copy link
Copy Markdown

Replace hardcoded "rerun" check with Jinja2 loop.last for comma logic

The comma condition in the outcomes loop was hardcoded to check result != "rerun", which breaks since #836 added "retried" after "rerun" in the outcomes dict. Using Jinja2's loop.last is the correct, order-independent approach.

…for comma logic

The comma condition in the outcomes loop was hardcoded to check
`result != "rerun"`, which breaks since pytest-dev#836 added "retried" after
"rerun" in the outcomes dict. Using Jinja2's `loop.last` is the
correct, order-independent approach.

Ref: pytest-dev#836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant